<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var  url = "https://movie.douban.com/subject/129205/";
        var reg = /[^\d]/g;
        var str = url.replace(reg,"").split("")
        console.log(str)
        var arr=[];
        for(var i = 0;i<str.length;i+=2){
            
            var list = str.slice(i,i+2)
            arr.push(list)
            // var list =str.substr(i,2).split("");
            // console.log(list)
            // arr.push(list);
        }
        
        console.log(arr);

    </script>
</body>
</html>